package com.example.orderservice.client;

import com.example.orderservice.entity.Order;
import com.example.orderservice.entity.PageVO;
import com.example.orderservice.entity.Product;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author lenovo
 * @Description
 * @Date2025/4/18 下午3:27
 */
@Component
//@FeignClient(value = "product-service",fallback = ProductServiceFeignClient.class)
public class ProductServiceFeignClientFallback implements ProductServiceFeignClient {


    @Override
    public ResponseEntity<Product> findProductById(Integer id) {
        return null;
    }

    @Override
    public ResponseEntity<List<Product>> findAllProducts() {
        return null;
    }

    @Override
    public ResponseEntity<PageVO> findProductsPage(Integer current, Integer pagesize) {
        return null;
    }

    @Override
    public ResponseEntity<String> addProduct(Product product) {
        return null;
    }

    @Override
    public ResponseEntity<String> updateProduct(Product product) {
        return null;
    }

    @Override
    public ResponseEntity<String> deleteProduct(Integer id) {
        return null;
    }
}
